from django.shortcuts import render_to_response
from django.http import HttpResponseRedirect
from django.contrib.auth.models import User
from django.template import RequestContext
from django import forms
from django.core.urlresolvers import reverse
from django.contrib.sitemaps import Sitemap
from datetime import datetime, timedelta
from django.contrib.auth.models import User
def gen_index(request):
	if (request.user.is_authenticated()):
		return HttpResponseRedirect('panel/'+ request.user.username + '/')
	else:
		return render_to_response('index/index_main.html', context_instance = RequestContext(request))
def gen_about(request):
	return render_to_response('index/about.html', context_instance = RequestContext(request))